package com.ziq.baselib.test.toast

import android.annotation.SuppressLint
import android.graphics.Color
import android.os.Bundle
import android.widget.Toast
import androidx.core.content.res.ResourcesCompat
import androidx.core.graphics.drawable.DrawableCompat
import com.ziq.base.base.BaseActivity
import com.ziq.base.view.drawable.colorStateListBuild
import com.ziq.base.view.drawable.gradientDrawableBuild
import com.ziq.base.view.drawable.stateListDrawableBuild
import com.ziq.base.extension.binding
import com.ziq.base.extension.click
import com.ziq.base.extension.dp
import com.ziq.baselib.R
import com.ziq.baselib.databinding.ActivityTestDrawableBinding


class ToastActivity: BaseActivity() {

    @SuppressLint("SetTextI18n")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        Toast.makeText(this, "test", 3000).show()
        try {
            Thread.sleep(5000)
        }catch (e:Exception){
            println("ToastActivity $e")
        }
    }
}